package com.opesoft.fw.mvc.taglib;

import javax.servlet.jsp.JspException;

public class Select extends InputBase
{
	public int doStartTag() throws JspException
	{
		String html="<select";
		if(name!=null) html+=this.htmlProprty("name",this.name);
		if(other!=null) html+=other;
		html+=">";
		this.write(html);

		return super.doStartTag();
	}

	public int doEndTag() throws JspException
	{
		this.write("</select>");
		return super.doEndTag();
	}

	protected boolean equalsValue(String optionValue)
	{
		if(optionValue!=null)
		{
			if(optionValue.equals(this.value)) return true;
		}
		return false;
	}

}
